<?php
header("Pragma: public");
header("Expires: 0");
header("Accept-Ranges: bytes");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-Type: application/vnd.ms-word");
header('Content-Disposition: attachment; filename=abiturientsabcmanual.doc');
header("Content-Transfer-Encoding: binary");
?>
<h4>
	Факультет 
	<?php echo $facultets[$facultet_id];?>, 
	Специальность 
	<?php echo $professions[$profession_id];?>, 
	Форма обучения 
	<?php echo $learningforms[$learningform_id];?>, 
	Тип обучения 
	<?php echo $learningtypes[$learningtype_id];?>
</h4>
<table>
<?php 
	foreach ($abiturients as $abiturient):
		echo '<tr>';
		echo '<td>';
		echo $abiturient['Abiturient']['lastname'].' '.$abiturient['Abiturient']['firstname'].' '.$abiturient['Abiturient']['surname'];
		echo '</td>';
		echo '</tr>';
	endforeach;
?>

</table>